local UseranklistAction = class("UseranklistAction", cc.server.ActionBase)

function UseranklistAction:ctor(app)
    self.ranklist = cc.load("Ranklist").new(app)
end

function UseranklistAction:SayandaddAction(data)
    local rl = self.ranklist
    local d = {}
    d.nickname = data.name
    d.value = 1001
    d.ranklist = "myzset"

    rl:Add(d)

    rl:ClearResult()

    return rl:Count(d)
end

return UseranklistAction
